package com.bjpowernode.app;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import java.net.URL;
public class MyApp extends Application {
    public static void main(String[] args) {
        Application.launch();
    }

    @Override
    public void start(Stage primaryStage) throws Exception {
        //获取stuView.fxml的文件的URL资源HTTP
        URL resource = MyApp.class.getResource("../view/stuView.fxml");
        //FXMLLoader.load读取URL
        Parent root = (Parent) FXMLLoader.load(resource);
        Scene scene = new Scene(root, 800, 600);
        primaryStage.setScene(scene);
        primaryStage.setTitle("学生管理系统");
        primaryStage.show();
    }
}
